package com.example.courier.controller;

import com.example.courier.entity.Location;
import com.example.courier.model.resp.LocationVO;
import com.example.courier.service.LocationService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author qwert
 * @version 1.0.0
 * @create 2025/9/6 16:21
 **/
@RestController
@RequestMapping("/api/delivery/locations")
@RequiredArgsConstructor
public class LocationController {

    private final LocationService locationService;
    @GetMapping()
    public List<LocationVO> getLocationList() {
        return locationService.getLocationList();
    }
}
